<template>
  <div class="nav">
    <div class="nav-bar">
      <a href="/">
        <img src="@/assets/img/logo.png" alt />
        <h2>云音乐</h2>
      </a>
      <nav-bar-list :list="['发现音乐','我的音乐','朋友','商城','音乐人','下载客户端']" />
      <search></search>
      <login></login>
    </div>    
  </div>
</template>

<script>
import NavBarList from "./NavBarList";
import Search from "./Search";
import Login from './Login'
export default {
  components: {
    NavBarList,
    Search,
    Login
  }
};
</script>

<style scoped>
.nav {
  width: 100vw;
}
.nav-bar {
  background-color: #242424;
  height: 70px;
  width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-bar a {
  height: 100%;
  display: flex;
  align-items: center;
  margin-right: 20px;
}
.nav-bar a img {
  border: 2px solid #41b883;
  background-color: #000;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  margin-right: 10px;
}
.nav-bar a h2 {
  height: 70px;
  line-height: 70px;
  color: #fff;
}
</style>